/*
 * GYAsyncCmdRegister.cpp
 *
 *  Created on: 2015年9月22日
 *      Author: gaoyi
 */

#ifndef GYASYNCCMDREGISTER_CPP_
#define GYASYNCCMDREGISTER_CPP_

#include "GYAsyncCmdRegister.h"
#include "GYAsyncCmd.h"
#include "GYAsyncCmdFactory.h"

#include "CTBase.h"
#include "CTMsgBase.h"

using namespace CTLib;

template<typename T>
GYAsyncCmdRegister<T>::GYAsyncCmdRegister(int iCmdId)
{
	CT_TRACE(("register cmd id(%d)", iCmdId));
	GY_CMDFACTORY->RegisterCmd(iCmdId, this);
}

template<typename T>
GYAsyncCmdRegister<T>::~GYAsyncCmdRegister()
{

}

template<typename T>
GYAsyncCmd* GYAsyncCmdRegister<T>::CreateObject() const
{
	return new T();
}



















#endif /* GYASYNCCMDREGISTER_CPP_ */
